//
//  DiscountedViewDetailView.m
//  ProjectForA
//
//  Created by hmengwei on 14/11/19.
//  Copyright (c) 2014年 hmengwei. All rights reserved.
//

#import "DiscountedViewDetailView.h"

@implementation DiscountedViewDetailView

- (void)dealloc
{
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.aview = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height / 3)];
        [_aview setBackgroundColor:[UIColor purpleColor]];
        
        self.bview = [[UIView alloc] initWithFrame:CGRectMake(0, self.frame.size.height / 3, self.frame.size.width, self.frame.size.height / 3 * 2)];
        [_bview setBackgroundColor:[UIColor greenColor]];
        
        [self addSubview:_aview];
        [self addSubview:_bview];
        
        
        
    }
    return self;
}

@end
